<template>
  <div class="vux-1px-b flex-row houseList">
    <div class="flex-grow-0 indexImgPath">
      <img class="img" v-lazy="item.IndexImagePath" alt="">
      <img v-if="item.videoUrl" class="icon-play" v-src="'/static/img/video-play.png'" alt="">
    </div>
    <div class="flex-grow-1">
      <div class="item-info-box">
        <p class="item-title">{{item.titleDesc}}</p>
        <p style="margin-top: 0.1rem">
          <span>{{item.quxian.substr(0,2)}}</span>
          <span class="line">|</span>
          <span>{{item.Community}}</span>
        </p>
        <p style="font-size:.24rem">
          <span style="color:#f63800">
            <span style="font-size:0.3rem; font-weight: bold">{{item.totalPrice}}</span><span>万</span>
          </span>
          <span class="line">|</span>
          <span>{{item.jifang}}</span>
          <span class="line">|</span>
          <span>{{item.AreaStr}}㎡</span>
        </p>
        <!--<p class="item-desc">{{item.jifang}} <span style="font-size: .26rem">/</span> {{item.AreaStr}}㎡</p>-->
        <!--<p v-if="label=='二手房' || label=='新房'" class="item-desc1">{{item.zhungxiu_type}} <span-->
        <!--style="font-size:.26rem">/</span> {{item.dan_price}}元/㎡</p>-->
        <!--<p v-if="label=='租房'" class="item-desc1">{{item.zhungxiu_type}} <span style="font-size:.26rem">/</span> 整租 <span-->
        <!--style="font-size:.26rem">/</span> 季付</p>-->
      </div>
    </div>
    <!--<div class="flex-grow-1 flex-right">-->
    <!--<div>-->
    <!--<p v-if="label=='二手房' || label=='新房'" class="totalPrice">￥{{item.totalPrice}}万</p>-->
    <!--<p v-if="label=='租房'" class="totalPrice">￥ 1300元/月</p>-->
    <!--</div>-->
    <!--</div>-->
  </div>
</template>

<script>
  export default {
    name: "houseList",
    props: {
      item: {
        type: Object,
        default: {}
      },
      label: {
        type: String,
        default: '二手房'
      }
    },


  }
</script>
<style lang="less" scoped>
  img {
    width: 100%;
  }

  .houseList {
    padding: .22rem;
    background: #fff;
    &.vux-1px-b:after {
      border-color: #f2f2f2;
    }
    .indexImgPath {
      width: 2.20rem;
      height: 1.66rem;
      position: relative;
      overflow: hidden;
      .img {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
      }
      .icon-play {
        position: absolute;
        width: 0.45rem;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
      }
    }
    .item-info-box {
      padding-left: 10px;
      font-size: .24rem;
      color: #686b72;
      .line {
        color: #e8e8e8;
      }
    }
    .item-title {
      font-size: 0.3rem;
      color: #000000;
      line-height: 0.4rem;
    }
    .item-desc {
      font-size: .24rem;
      color: #777;
    }
    .item-desc1 {
      font-size: .24rem;
      color: #777;
    }
    .totalPrice {
      font-size: 15px;
      color: @red;
    }
  }

</style>